package chixing.day19.work;

public class VIPDiscount implements DiscountStrategy{
    public double applyDiscount(double originalPrice, User user, Product product) {
        if (user.isVip()) {
            return originalPrice * 0.95;
        }
        return originalPrice;
    }
}
